//
//  FundController.m
//  Wisdom Bank
//
//  Created by rimi on 15/10/9.
//  Copyright (c) 2015年 wlc. All rights reserved.
//

#import "FundController.h"

@interface FundController ()
@property (nonatomic,strong) UIButton *myCollectBtn;
@end

@implementation FundController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor purpleColor];
    [self.view addSubview:self.myCollectBtn];
}

- (UIButton *)myCollectBtn{
    
    if (!_myCollectBtn) {
        _myCollectBtn = ({
            UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
            btn.frame = CGRectMake(40, 12, 100, 40);
            [btn setImage:[UIImage imageNamed:@"我的收藏.png"] forState:UIControlStateNormal];
            btn.layer.cornerRadius = 5;
            btn;
        });
    }
    return _myCollectBtn;
}

- (void)dealloc{
    
    NSLog(@"基金被销毁了");
}

@end
